package com.appkubes.mall.restful.application.user.account.account.service;

import com.appkubes.common.exception.BusinessException;
import com.appkubes.mall.core.service.BaseMallUserAccountService;
import com.appkubes.mall.restful.application.user.account.account.entity.dto.OrderPayUserAccountDTO;

import java.math.BigDecimal;

/**
 * @Author: Rongjie
 * @Date: 2020/1/13 21:32
 * @Description:
 */
public interface UserAccountService extends BaseMallUserAccountService {

    /**
     * 增加用户的佣金(负数为减少(即提现))
     *
     * @param userKey
     * @param brokerage
     * @return
     */
    Boolean addBrokerage(String userKey, BigDecimal brokerage);


    Boolean onOrderPay(OrderPayUserAccountDTO orderPayUserAccountDTO);

    Boolean orderConfirm(String userKey, String orderKey) throws RuntimeException;

}
